package cn.theten52.demo.patterns.design.creation.factory.asyn;

import cn.theten52.demo.patterns.design.creation.factory.abstract1.CarBody;
import cn.theten52.demo.patterns.design.creation.factory.abstract1.update1.CarLightsFactory;

import java.util.concurrent.Future;

/**
 * 异步工厂
 *
 * @author wangjin
 * @date 2020/12/27
 */
public interface AsyncFactory extends CarLightsFactory {
    /**
     * 异步生成车身
     *
     * @return 异步生成车身
     */
    Future<CarBody> asynchronousNewCarBody();
}
